{% extends 'base.html' %}

{% block title %}删除资产 - Allen监控系统{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title mb-0">确认删除</h3>
                </div>
                <div class="card-body">
                    <p>您确定要删除以下资产吗？</p>
                    <p><strong>资产编号：</strong>{{ asset.asset_number }}</p>
                    <p><strong>资产名称：</strong>{{ asset.name }}</p>
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                            <a href="{% url 'asset_management' %}" class="btn btn-secondary me-md-2">取消</a>
                            <button type="submit" class="btn btn-danger">确认删除</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 